<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib uri="/struts-tags" prefix="s"%>
<%@ page import="pojo.Cart"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE HTML >
<html>
	<head>
		<base href="<%=basePath%>">
		<title>所有分类</title>
		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
		<meta name="viewport"
			content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />

		<link rel="stylesheet"
			href="<%=request.getContextPath()%>/admin/css/pintuer.css">
		<script src="<%=request.getContextPath()%>/admin/js/jquery.js"></script>
		<script src="<%=request.getContextPath()%>/admin/js/pintuer.js"></script>
		<STYLE type="text/css">
			li {
				padding: 5px;
			}
		</STYLE>
		<SCRIPT type="text/javascript">
	$(function() {$("#onemenu").on("click","div.onemenu11",function() {
		var onemenuId = $(this).parent().find("input:hidden").val();
		var $thisinput = $(this).parent().find("ul");
			$thisinput.toggle(100);
		var openid = $('#sellerid').val();
		$.ajax({
			'url':"classify!findTwo0.action",
			'data' : {"classify.id" : onemenuId},
			'type' : "post",
			'dataType' : "json",
			'success' : function(data) {
				$thisinput.empty();
				for ( var i = 0; i < data.length; i++) {
					var twomenuId = data[i].id;
					$thisinput.append('<li style="list-style-type:none;border-top: 1px solid #DCDCDC;">'
									+'<a href="product!findByC.com.kecheng.action?team.sellerid='+openid+"&"
							+'twoClassify.id='
							+ twomenuId
							+ '" >'
							+ data[i].cname
							+ '</a></li>');
				}
			},
			'error':function() {
				alert("查询二级菜单失败!");
			}
		});
	});
	});
	
	$(function(){
		$("#searchshangping").click(function(){
			var searchKey=$("#searchkey").val();
			location.href="<%=request.getContextPath()%>/w/wechatproduct!search.com.kecheng.action?key0="+searchKey;
		});
	});
	<%-- product!search.com.kecheng.action?key0="+"$('#searchkey').val()
		 product!search.com.kecheng.action?sid="+<%=request.getAttribute("sid")%>+"&key0="+$('#search').val()
	--%>
</SCRIPT>
	</head>

	<body style="background:#f5f5f5;font-size: 15px;" class="">
		<input id="sellerid" type="hidden" value="${team.sellerid }"/>
		<!-- 搜索框 -->
		<div  style="background:#fff;line-height: 3em;border-bottom: 1px solid #DCDCDC;margin-top:10px;padding-left: 2em;">
			<a href="product!findallp.action?team.sellerid=${team.sellerid }"><div  class="onemenu11" style="position:relative;">全部宝贝<span class="icon-angle-right text-big;" style="position:absolute; right:10px;"></span></div>
			</a>
		</div>
		<!-- 分类菜单 -->
		<div id="onemenu" style="margin-top:10px;background:#fff;">
			<s:iterator value="classifys">
				<div  style="line-height: 3em;border-bottom: 1px solid #DCDCDC;margin:0;padding-left: 2em;">
					<div  class="onemenu11" style="position:relative;"><s:property value="cname"/><span class="icon-angle-right text-big;" style="position:absolute; right:10px;"></span></div>
					<input type="hidden" value='<s:property value="id"/>'/>
					<ul style="display:none;">
					</ul>
				</div>
			</s:iterator>
		</div>
		
		<div style="height:45px;width:100%;"></div>
	 <jsp:include page="./tmpfoot.jsp"></jsp:include>
	</body>
</html>
